﻿#region Styx Namespaces
using Styx;
using Styx.Common;
using Styx.CommonBot;
using Styx.CommonBot.Routines;
using Styx.TreeSharp;
using Styx.WoWInternals;
using Styx.WoWInternals.DBC;
using Styx.WoWInternals.WoWObjects;
using Styx.MemoryManagement;
#endregion

namespace GiwinMonk
{
    public partial class Monk : CombatRoutine
    {
        public bool SpellInterruptable()
        {
            ///<summary>
            /// Spell ID - Spell Name - WoWHead Hyperlink
            ///</summary>
            ///<remarks>
            /// 118 - "Polymorph" - http://www.wowhead.com/spell=118
            /// 421 - "Chain Lighting" - http://www.wowhead.com/spell=421
            /// 51514 - "Hex" - http://www.wowhead.com/spell=51514
            /// 115175 - "Soothing Mist" - http://www.wowhead.com/spell=115175
            ///</remarks>


            if (StyxWoW.Me.CurrentTarget.CastingSpellId == 118 || StyxWoW.Me.CurrentTarget.CastingSpellId == 421 ||
                StyxWoW.Me.CurrentTarget.CastingSpellId == 51514 || StyxWoW.Me.CurrentTarget.CastingSpellId == 115175)
            {
                Logging.Write("Spell Interruptable");

                return true;
            }
            else return false;
        }
    }
}
